package com.ftg.learn.assess.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ftg.learn.assess.dto.AdminUpdateAssessDto;
import com.ftg.learn.assess.dto.AdminPageQueryDto;
import com.ftg.learn.assess.entity.Assess;
import com.ftg.learn.assess.result.PageResult;
import com.ftg.learn.assess.result.Result;
import com.ftg.learn.assess.vo.UserGetAllAssessByEvaluationIdVo;
import com.ftg.learn.assess.vo.UserGetMeAssessVo;

import java.util.List;

public interface AssessService extends IService<Assess> {
    Result<PageResult> pageQuery(AdminPageQueryDto queryDto);

    Result<String> updateProductAssess(AdminUpdateAssessDto updateAssessDto);

    Result<String> removeProductAssess(Long evaluationId);

    Result<List<UserGetMeAssessVo>> getMeAssess(Long userId);

    Result<String> removeAssessByUserId(Long userId, Long evaluationId);

    Result<List<UserGetAllAssessByEvaluationIdVo>> getProductAssessByEvaluationId(Long productId);


}
